<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
	<div id="header">
	  <c:if test="${empty sessionScope.username }">
			<div id="loginOut" class="wrapper">
				<a href="" class="logo"></a>
				<ul class="reset" id="navheader">
					<li class="current"><a href="index.jsp">首页</a></li>
					<li id="companyOut"><a href="company.jsp">公司</a></li>
					<li id="myresumeOut"><a rel="nofollow">我的简历</a></li>
				</ul>
				<ul class="loginTop">
	            	<li><a href="javascript:void(0)" rel="nofollow" onclick="login()">登录</a></li> 
	            	<li>|</li>
	            	<li><a href="register.jsp" rel="nofollow">注册</a></li>
	           	</ul>
			</div>
		</c:if>
		<c:if test="${!empty sessionScope.username }">
		<div id="loginOn" class="wrapper">
			<a href="" class="logo"></a>
			<ul class="reset" id="navheader">
			    <c:if test="${sessionScope.balance=='0'}">
					<li class="current"><a href="index.jsp">首页</a></li>
					<li id="companyOn" ><a href="company.jsp">公司</a></li>
					<li id="myresumeOn"><a href="resume_index" rel="nofollow">我的简历</a></li>
				</c:if>
				<c:if test="${sessionScope.balance=='1'}">
					<li id="resumeManagement"><a id="arrangeds" href="arranged.jsp" rel="nofollow">简历管理</a></li>
					<li id="distributionJobs"><a href="positionsPublish.jsp?type=1" rel="nofollow">发布职位</a></li>
			    </c:if>
			</ul>
			<dl id="recruitPeople" class="collapsible_menu">
				<dt>
					<span id="nowrap">&nbsp;${sessionScope.username}</span>
					 <span id="noticeDot-0"
						class="dn"></span> <i></i>
				</dt>
				<dd style="display: none;">
					<a href="resume_index" rel="nofollow">我的简历</a>
				</dd>
				<dd style="display: none;">
					<a href="collections.jsp">我收藏的职位</a>
				</dd>
				<dd style="display: none;">
					<a href="delivery.jsp">我投递的职位 <span class="red dn" id="noticeNo">(0)</span>
					</a>
				</dd>
				<dd class="btm" style="display: none;">
					<a href="subscribe.jsp">我的订阅</a>
				</dd>
				<dd id="recruitPeoples" style="display: none;">
					<a onclick="recruitPeoples();" href="arranged.jsp">我要招人</a>
				</dd>
				<dd style="display: none;">
					<a href="info.jsp">帐号设置</a>
				</dd>
				<dd class="logout" style="display:none;">
					<a onclick="logout();">退出</a>
				</dd>
			</dl>
			
			<div id="noticeTip" class="dn">
				<span class="bot"></span> <span class="top"></span> <a href=""
					class="notice_tip" target="_blank"><strong>0</strong>条新投递反馈</a> <a
					href="javascript:;" class="closeNT"></a>
			</div>
		</div>
		</c:if>
	</div>
<jsp:include page="jump.jsp" flush="true"/> 


<script type="text/javascript">
function login(){
   //获取当前的url 对它进行utf编码
   var url = encodeURIComponent(window.location.href);
   window.location.href="login.jsp?from="+url;

}
function logout(){
	      $.ajax({  
               type : 'post',  
               url : 'user_logout',  
               dataType : 'json',  
               data :{},
          	   success : function (result) {
              	   if(result.errcode=="0"){
						$.cookie("jrqUserName", null, { path: '/' });
						$.cookie("jrqPassWord", null, { path: '/' });
				        window.open("index","_top");
						//delayURL("注销成功，欢迎下次登录！","3","index.jsp");
	               }
               },  
               error : function () {  
            	    delayURL("永川软件园人才网部分数据失联啦，码农门正抓紧修复！","3","index.jsp");
               		return;
               }  
           });       
       } 

</script>



